/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_objectpairDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression value;

    public T_dmap_objectpairDetachedCriteria() {
	super(org.testis.orm.classes.T_dmap_objectpair.class,
		org.testis.orm.classes.T_dmap_objectpairCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	value = new StringExpression("value", this.getDetachedCriteria());
    }

    public T_dmap_objectpairDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_dmap_objectpairCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	value = new StringExpression("value", this.getDetachedCriteria());
    }

    public T_dmap_paramsDetachedCriteria createParamCriteria() {
	return new T_dmap_paramsDetachedCriteria(createCriteria("Param"));
    }

    public T_dmap_objectsDetachedCriteria createObjectCriteria() {
	return new T_dmap_objectsDetachedCriteria(createCriteria("Object"));
    }

    public T_dmap_objectpair uniqueT_dmap_objectpair(PersistentSession session) {
	return (T_dmap_objectpair) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_dmap_objectpair[] listT_dmap_objectpair(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_dmap_objectpair[]) list.toArray(new T_dmap_objectpair[list
		.size()]);
    }
}
